programming4us
           
 
 
SQL Server

SQL Azure Primer (part 3) - Connecting with SQL Server Management Studio

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
12/6/2010 8:50:38 AM

4. Connecting with SQL Server Management Studio

Follow these steps to connect to your SQL Azure database using SQL Server Management Studio:

  1. You need to obtain the fully qualified server name of the SQL Azure database. Figure 7 shows the server information on the SQL Azure portal. The fully qualified server name is located above the Reset Password button.

    NOTE

    This example uses SQL Server 2008 SP1 Management Studio. Although you can connect to and manage SQL Azure using this release, additional features are available using the SQL Server 2008 R2 release, such as the ability to view database objects using the Object Browser.

  2. Start SQL Server Management Studio. Click the Cancel button in the Login screen.

    Figure 7. Obtaining the server name of your SQL Azure server

    NOTE

    If you're using SQL Server Management Studio for SQL Server 2008 R2, you can log in using the first Login window. However, if you're using a previous version of SQL Server Management Studio, you need to click Cancel in the first Login window. The instructions provided in this section work for both editions.

  3. Click the New Query button, or press Ctrl + N. A new Login screen opens (see Figure 8). In this window, enter the following information:

    • Server name. Enter the fully qualified server name.

    • Authentication. Select SQL Server Authentication.

    • Login. Type the administrator username (created previously).

    • Password. Type the password of the administrator account.

    Figure 8. Logging in to a SQL Azure server

    By default, clicking Connect authenticates you against the master database. If you want to connect to another database, click Options and type the desired database name in the "Connect to database" field, as shown in Figure 9. Note that you can't select the database name; the database name must be typed.

  4. When you're ready, click Connect. A new query window opens, and you can execute T-SQL commands against your SQL Azure database.

NOTE

After you connect to a database, the only way to use another database is to re-establish a connection and type the database name in the "Connect to database" field. The USE command doesn't work against SQL Azure to switch database contexts. Because a database can be physically located on any server, the only practical way to switch databases is to reconnect.

Figure 9. Connecting to a specific database other than master

Figure 10 shows the query window connected to SQL Azure, on which a simple command has been executed.

Figure 10. Running a simple T-SQL command on SQL Azure

Other -----------------
- SQL Server 2008 : Implementing Transactions - Locking
- SQL Server 2008 : Isolation Level Explained
- SQL Server 2008 : ACID
- SQL Server 2008 : Transactions Explained
- SQL server 2008 : Handling Errors (part 3)
- SQL server 2008 : Handling Errors (part 2)
- SQL server 2008 : Handling Errors (part 1)
- SQL Server 2008 : Indexing for Performance - Putting It All Together (part 5) - Filtered Indexes
- SQL Server 2008 : Indexing for Performance - Putting It All Together (part 4) - Indexing JOIN Criteria
- SQL Server 2008 : Indexing for Performance - Putting It All Together (part 3) - Covering Your Queries
- SQL Server 2008 : Indexing for Performance - Putting It All Together (part 2) - Clustered Index Seeks
- SQL Server 2008 : Indexing for Performance - Putting It All Together (part 1)
- SQL Server Integration Services : Logged and Nonlogged Operations
- SQL Server Integration Services : Using bcp (part 5)
- SQL Server Integration Services : Using bcp (part 4)
- SQL Server Integration Services : Using bcp (part 3)
- SQL Server Integration Services : Using bcp (part 2) - Fundamentals of Exporting and Importing Data
- SQL Server Integration Services : Using bcp (part 1)
- SQL Server Integration Services : Connection Projects in Visual Studio
- SQL Server Integration Services : The Package Execution Utility (part 3) - The dtutil Utility
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us